<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            display: flex;
            width: 600px;
            height: 200px;
            margin: 20px 20px;
            border: 2px solid #ccc;
            flex-wrap: wrap;
            justify-content: space-between;
        }
        .inner{
            width: 130px;
            height: 70px;
            text-align: center;
            line-height: 70px;
            background-color: teal;
            margin-top: 10px;
        }
        .box::after{
            content: '';
            width: 130px;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="inner">1</div>
        <div class="inner">2</div>
        <div class="inner">3</div>
        <div class="inner">4</div>
        <div class="inner">5</div>
        <div class="inner">6</div>
        <div class="inner">7</div>
    </div>
</body>
</html>